/**
  * @title: 常量文件
  * @description: 
  * @author JUN
  */



// // 安顺
// export const BASE_URL = "http://c.asotc.cn:38082/zyjsxy-miniapp-api/" //安顺地址(旧)
// export const BASE_URL = "https://ksw.gzrsjob.com/zyjsxy-miniapp-api/" //安顺地址(新)
// export const APP_ID = "wx85415253c900aa65"//安顺appid


// http://test3.4yd67.cn:7788/zyjsxy-miniapp-api/测试地址
// wx7496665e5f925df9 测试appid

export const BASE_URL = process.env.NODE_ENV === 'development' ? "http://test3.4yd67.cn/zyjsxy-miniapp-api/" : "https://www.gzrsjob.com/zyjsxy-miniapp-api/"

// export const BASE_URL = "https://www.gzrsjob.com/zyjsxy-miniapp-api/"

// http://test1.4yd67.cn:7788/后台地址

export const formData = {//表单数据
	name: "", //姓名
	sex: "", //性别 1-男、2-女
	education: "", //文化程度
	idcard: "", //身份证号
	phone: "", //电话号码
	gdsl: "", //毕业院校
	gdtm: "", //毕业时间
	degree: "", //学位
	idpic: "", //身份证正面图片
	idrpic: "", //身份证背面图片
	nate: "", //籍贯
	census: "", //户籍
	birth: "", //出生日期
	addr: "", //联系地址
	nation: "", //民族
	political: "", //政治面貌
	nationality: "", //国籍
	icon: "" //准考证的头像
}

export const rules = {
	//验证规则
	name: [{
		required: true,
		trigger: "blur",
		message: "请输入姓名",
	}, ],
	sex: [{
		required: true,
		trigger: "blur",
		message: "请选择性别",
		type:"number",
	}, ],
	education: [{
		required: true,
		trigger: "blur",
		message: "请输入文化程度",
		type:"object"
	}, {
		validator:(rule, value)=>{
			if(value.value){
				return true
			}else{
				return false
			}
		},
		message: "请输入文化程度",
		trigger: "blur",
	}],
	idcard: [{
			required: true,
			trigger: "blur",
			message: "请输入身份证号",
		},
		{
			trigger: "blur",
			pattern: /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$|^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/,
			message: "请输入正确的身份证号码",
		},
	],
	phone: [{
			required: true,
			trigger: "blur",
			message: "请输入电话号码",
		},
		{
			trigger: "blur",
			pattern: /^[1][3,4,5,7,8][0-9]{9}$/,
			message: "请输入正确的手机号码",
		},
	],
	birth: [{
		required: true,
		trigger: "blur",
		message: "请输入出生日期",
	}, ],
	addr: [{
		required: true,
		trigger: "blur",
		message: "请输入联请输入系地址",
	}, ],
	nation: [{
		required: true,
		trigger: "blur",
		message: "请输入民族",
		type:"object"
	}, {
		validator:(rule, value)=>{
			if(value.value){
				return true
			}else{
				return false
			}
		},
		message: "请输入民族",
		trigger: "blur",
	}],
	icon: [{
		required: true,
		trigger: "blur",
		message: "请上传准考证照片",
	}, ],
	gdsl: [{
		trigger: "blur",
		message: "请输入毕业院校",
	}, ],
	gdtm: [{
		trigger: "blur",
		message: "请输入毕业时间",
	}, ],
	degree: [{
		trigger: "blur",
		message: "请输入学位",
		type:"any"
	}],
	nate: [{
		trigger: "blur",
		message: "请输入籍贯",
	}, ],
	census: [{
		trigger: "blur",
		message: "请输入户籍",
	}, ],
	political: [{
		trigger: "blur",
		message: "请输入政治面貌",
		type:"any"
	},],
	nationality: [{
		trigger: "blur",
		message: "请输入国籍",
	}, ],
	idpic: [{
		trigger: "blur",
		message: "请上传身份证正面照片",
	}, ],
	idrpic: [{
		trigger: "blur",
		message: "请上传身份证背面照片",
	}, ],
}

export const politicalOptions = [{ //政治面貌
	value: "1",
	label: "中共党员"
}, {
	value: "2",
	label: "中共预备党员"
}, {
	value: "3",
	label: "共青团员"
}, {
	value: "4",
	label: "民革党员"
}, {
	value: "5",
	label: "民盟盟员"
}, {
	value: "6",
	label: "民建会员"
}, {
	value: "7",
	label: "民进会员"
}, {
	value: "8",
	label: "农工党党员"
}, {
	value: "9",
	label: "致公党党员"
}, {
	value: "10",
	label: "九三学社社员"
}, {
	value: "11",
	label: "台盟盟员"
}, {
	value: "12",
	label: "无党派人士"
}, {
	value: "13",
	label: "群众"
}]

export const nationOptions = [{ //民族
	value: "1",
	label: "汉族"
}, {
	value: "2",
	label: "壮族"
}, {
	value: "3",
	label: "藏族"
}, {
	value: "4",
	label: "裕固族"
}, {
	value: "5",
	label: "彝族"
}, {
	value: "6",
	label: "瑶族"
}, {
	value: "7",
	label: "锡伯族"
}, {
	value: "8",
	label: "乌孜别克族"
}, {
	value: "9",
	label: "维吾尔族"
}, {
	value: "10",
	label: "佤族"
}, {
	value: "11",
	label: "土家族"
}, {
	value: "12",
	label: "土族"
}, {
	value: "13",
	label: "塔塔尔族"
}, {
	value: "14",
	label: "塔吉克族"
}, {
	value: "15",
	label: "水族"
}, {
	value: "16",
	label: "畲族"
}, {
	value: "17",
	label: "撒拉族"
}, {
	value: "18",
	label: "羌族"
}, {
	value: "19",
	label: "普米族"
}, {
	value: "20",
	label: "怒族"
}, {
	value: "21",
	label: "纳西族"
}, {
	value: "22",
	label: "仫佬族"
}, {
	value: "23",
	label: "苗族"
}, {
	value: "24",
	label: "蒙古族"
}, {
	value: "25",
	label: "门巴族"
}, {
	value: "26",
	label: "毛南族"
}, {
	value: "27",
	label: "满族"
}, {
	value: "28",
	label: "珞巴族"
}, {
	value: "29",
	label: "僳僳族"
}, {
	value: "30",
	label: "黎族"
}, {
	value: "31",
	label: "拉祜族"
}, {
	value: "32",
	label: "柯尔克孜族"
}, {
	value: "33",
	label: "景颇族"
}, {
	value: "34",
	label: "京族"
}, {
	value: "35",
	label: "基诺族"
}, {
	value: "36",
	label: "回族"
}, {
	value: "37",
	label: "赫哲族"
}, {
	value: "38",
	label: "哈萨克族"
}, {
	value: "39",
	label: "哈尼族"
}, {
	value: "40",
	label: "仡佬族"
}, {
	value: "41",
	label: "高山族"
}, {
	value: "42",
	label: "鄂温克族"
}, {
	value: "43",
	label: "俄罗斯族"
}, {
	value: "44",
	label: "鄂伦春族"
}, {
	value: "45",
	label: "独龙族"
}, {
	value: "46",
	label: "东乡族"
}, {
	value: "47",
	label: "侗族"
}, {
	value: "48",
	label: "德昂族"
}, {
	value: "49",
	label: "傣族"
}, {
	value: "50",
	label: "达斡尔族"
}, {
	value: "51",
	label: "朝鲜族"
}, {
	value: "52",
	label: "布依族"
}, {
	value: "53",
	label: "布朗族"
}, {
	value: "54",
	label: "保安族"
}, {
	value: "55",
	label: "白族"
}, {
	value: "56",
	label: "阿昌族"
}, {
	value: "57",
	label: "穿青族"
}]


export const educationOptions = [{ //文化程度
	value: "1",
	label: "博士"
}, {
	value: "2",
	label: "硕士"
}, {
	value: "3",
	label: "本科"
}, {
	value: "4",
	label: "大专"
}, {
	value: "5",
	label: "中专"
}, {
	value: "6",
	label: "高中"
}, {
	value: "7",
	label: "初中"
}, {
	value: "8",
	label: "小学"
}]


export const degreeOptions = [{ //学位
	value: "1",
	label: "暂无"
}, {
	value: "2",
	label: "学士"
}, {
	value: "3",
	label: "硕士"
}, {
	value: "4",
	label: "博士"
}]
